package com.learn.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

import com.learn.myrule.MySelfRule;

@SpringBootApplication
@EnableEurekaClient//开启eureka服务注册与发现客户端
//在启动微服务的时候就能加载我们的自定义Ribbon配置类，从而使配置生效，自定义负载均衡算法
@RibbonClient(name="MICROSERVICECLOUD-DEPT",configuration=MySelfRule.class)//注意这个算法不能放在@ComponentScan的包下
public class DeptConsumer80_APP {
	public static void main(String[] args) {
		SpringApplication.run(DeptConsumer80_APP.class, args);
	}
}
